<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<section class="aui-list-product">
    <div class="aui-list-product-box">
    <c:forEach var="cargo" items="${cargos}" >
     <a href="/apollo/wechat/shop/product?cargoId=${cargo.cargoId }" class="aui-list-product-item">
      <div class="aui-list-product-item-img"> 
     
     	<c:if test="${cargo.fileId==null }">
			<img src="" style="height:145px;width:145px;text-align:center"  alt="暂无图片">
		</c:if>	
		<c:if test="${cargo.fileId!=null }">
			<%-- <img name="pictureLoad" data-url="${tfile:getImageUrl(cargo.fileId)}" style="height:145px;width:145px"  alt=""> --%>
			<img name="pictureLoad" data-url="${tfile:getImageUrlStyle(cargo.fileId,'image/resize,w_300')}" style="height:145px;width:145px" alt="">
		</c:if>	
      </div>
      <div class="aui-list-product-item-text">
        <h3>${cargo.cargoName }</h3>
        <div> 
         	<c:if test="${cargo.minSale==cargo.maxSale}">
				<span class="aui-list-product-item-price"> <em>¥</em> ${cargo.minSale}</span> 				
			</c:if>
			<c:if test="${cargo.minSale!=cargo.maxSale}">
				<span class="aui-list-product-item-price"> <em>¥</em> ${cargo.minSale}~~${cargo.maxSale} </span> 
			</c:if>
          	
          	
          </div>
        <div class="aui-list-product-mes-box">
          
          <div><span class="aui-list-product-item-del-text">库存：${cargo.stockNum } </span></div>
          <div class="aui-list-product-item-del-text">销量：${cargo.salesVolume}</div>
        </div>
        
      </div>
      </a>
      
   </c:forEach>
      
    </div>
  </section>